﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TProject
{
    class Person
    {
        // Private Data members
        private string Name;
        private int Id;
        private int Age;

        // public overloading constructor
        public Person(int id, string name, int age)
        {
            Id = id;
            Name = name;
            Age = age;
        }// end of overloading constructor

        // public properities
        public string name
        {
            set { Name = value; }
            get { return Name; }
        }// end of properity

        public int id
        {
            set { Id = value; }
            get { return Id; }
        }// end of properity

        public int age
        {
            set { Age = value; }
            get { return Age; }
        }// end of properity

        public override string ToString()
        {
            return id + ":" + name + ":" + age;
        }// end of Tostring()
    }
}
